package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 编码设置表
 * </p>
 *
 * @author WEN
 * @since 2023-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjCodeSet对象", description="编码设置表")
public class ZjCodeSet implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商家ID")
    private Long id;

    @ApiModelProperty(value = "编码规则类型：1-数字+字母组合")
    private Integer ruleType;

    @ApiModelProperty(value = "编码规格前缀")
    private String codePrefix;

    @ApiModelProperty(value = "编码规则：1-六位产品生产日期，2-八位防伪码，3-六位随机防窜码")
    private String codeRule;

    @ApiModelProperty(value = "临时编码前缀")
    private String temporaryPrefix;

    @ApiModelProperty(value = "临时编码规则：1-六位产品生产日期，2-八位防伪码，3-八位随机防窜码")
    private String temporRule;

    @ApiModelProperty(value = "是否启用仓储编码：0-不启用，1-启用")
    @TableField("is_enable_storehouse_code")
    private Boolean enableStorehouseCode;

    @ApiModelProperty(value = "仓储编码前缀")
    private String storehousePrefix;

    @ApiModelProperty(value = "仓储编码规则：1-六位产品生产日期，2-八位防伪码，3-八位随机防窜码")
    private String storehouseRule;

    @ApiModelProperty(value = "是否启用编码导入：0-不启用，1-启用")
    @TableField("is_enable_import")
    private Boolean enableImport;

    @ApiModelProperty(value = "导入编码")
    private String importPrefix;

    @ApiModelProperty(value = "批量编码")
    private String batchPrefix;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
